#pragma once
#include <cstdio>
#include <windows.h>
#include <vector>
#include "VMEM.h"
#include "code.h"
class EXER
{
    FILE* _stream;
    size_t file_size;
    BYTE page;
    BYTE pos;
    std::vector<BYTE>buf;
    VMEM vmem;
    bool halt;
public:
    EXER();
    EXER(FILE*);
    bool jump_to_page(size_t p);
    BYTE next_byte();
    void execute_command();
    bool is_halt() const;
};

